#ifndef _COMM_WORLD_H_
#define _COMM_WORLD_H_

#define ATTACK_ERROR    -1
#define ATTACK_NONE     0
#define ATTACK_BODY     1
#define ATTACK_HEAD     2

typedef struct World World;
World * CreateWorld(int width, int height, int objs);
void DestroyWorld(World * w);

int AttackWorld(World * w, int x, int y);
int CreateObject(World * w, int x, int y, int direction);
int RemoveObjectAt(World * w, int x, int y);
char * DumpWorld(World * w, char * buffer);
#endif
